Skip to main content

ParentDirectory

ParentDirectory[] gives the parent of the current working directory. 

ParentDirectory["dir"] gives the parent of the directory dir.

ParentDirectory["dir",n] gives the directory n levels up from dir.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.